"use strict";

exports.site_info = {
	debug: true,
	port: 3003,
	host: 'localhost',
	base_url: 'http://localhost:3003/',
	page_size: 2,

	session_type: 0,	 //0 normal  1 redis  2 mongodb	
	cookie_secret: 'blog cookie secret',
	session_secret: 'blog session secret',
	cookie_auth_name: 'blog_user',

	site_name: "Blog",
	site_desc: "一个简单的Demo -- 基于Node.js Express & Mysql & Bootstrap & AngularJS",
	site_email: "ifelse01@hotmail",

	site_page: {index:0, essay:1, category:2, tag:3},	
	return_type:{login:0, success:1, error:2, layer_relogin:"the cookie has expired, please re-login."},
	
	page:{
		name: "essay",
		title: "a simple blog demo that use the Node.js Express & Mysql & Bootstrap & AngularJS",
		intro: "Blog",
		intro_desc: "simple essays record"
	}
}

// 邮箱配置
var mail_config = {
    service: 'Hotmail',
    auth: {
      	user: 'ifelse01@hotmail.com',
      	pass: '012345'
    }
};
exports.mail_config = mail_config;


var mysql_config = {
    host: 'localhost',     //本地数据库
    port: '3306',
    user: 'sa',          		 //数据库用户名
    password: '1234',          //数据库密码
    database: 'oschina_express'  //数据库名称
};
exports.mysql_config = mysql_config;